package com.atguigu.tingshu.user.client.impl;


import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.user.client.UserInfoFeignClient;
import com.atguigu.tingshu.vo.user.UserInfoVo;
import com.atguigu.tingshu.vo.user.UserPaidRecordVo;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class UserInfoDegradeFeignClient implements UserInfoFeignClient {
    @Override
    public Result<UserInfoVo> getUserInfoVo(Long userId) {
        System.out.println("根据userId远程调用用户信息失败");
        return null;
    }

    @Override
    public Result<Map<Long, Integer>> userIsPaidTrack(Long albumId, List<Long> trackIdList) {
        System.out.println("根据albumId和trackIdList远程调用用户是否购买声音失败");
        return null;
    }

    @Override
    public Result<Boolean> isPaidAlbum(Long itemId) {
        System.out.println("根据专辑id查询用户是否购买专辑失败");
        return null;
    }

    @Override
    public Result<List<Long>> findAllPaidTracks(Long albumId) {
        System.out.println("根据id查询用户购买声音数失败");
        return null;
    }

    @Override
    public Result saveUserPaidRecord(UserPaidRecordVo userPaidRecordVo) {
        System.out.println("保存用户购买记录失败");
        return null;
    }
}
